cmake_minimum_required(VERSION 3.5)
project(OMIT_MeshDS
        VERSION 0.1.0
        LANGUAGES CXX
        DESCRIPTION "A tiny datastructure for 2D meshing")


set(CMAKE_CXX_STANDARD 17 CACHE STRING "The C++ standard to use")
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

set(OMIT_MeshDS_DIR ${OMIT_THIRDPARTY_DIR}/OMIT_MeshDS)

file(GLOB_RECURSE OMIT_MeshDS_SOURCES 
    "${OMIT_MeshDS_DIR}/OMIT_Mesh/include/TopoDS/*.h"
    "${OMIT_MeshDS_DIR}/OMIT_Mesh/include/App/*.h"
    "${OMIT_MeshDS_DIR}/OMIT_Mesh/include/App/*.inl"
    "${OMIT_MeshDS_DIR}/OMIT_Mesh/inc/TopoDS/*.inl"
    )

add_library(${PROJECT_NAME} INTERFACE 
    ${OMIT_MeshDS_SOURCES}
    ${OMIT_MeshDS_DIR}/OMIT_Mesh/OMIT_Mesh.h)

target_include_directories(${PROJECT_NAME} INTERFACE
    ${OMIT_MeshDS_DIR}
    )

target_link_libraries(${PROJECT_NAME}
    INTERFACE range-v3::range-v3
    )
